<h1>New product</h1>
<%= error_messages_for :product %>

<% form_for(@product) do |f| %>
  <%= render :partial => 'form', :locals => {:form => f, :product => @product, :categories => @product_categories} %>
  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', products_path %>
